﻿using System;
using System.ComponentModel;

namespace Uniloader.Managers
{
    public class TaskEventArgs : CancelEventArgs
    {
        public TaskEventArgs(TransferTask task) : this(task, false) { }

        public TaskEventArgs(TransferTask task, bool cancel) 
            : base(cancel)
        {
            _task = task;
        }
        
        private TransferTask _task;
        public TransferTask Task
        {
            get { return _task; }
        }
    }
}
